﻿using System.ComponentModel.DataAnnotations;
using YNTK.Common.Enum;
using YNTK.Dependency;

namespace YNTK.Common.Filter
{
    /// <summary>
    /// 通用排序请求模型
    /// </summary>
    [SuppressSniffer]
    public class SortRequetModel
    {
        /// <summary>
        /// id
        /// </summary>
        [Required(ErrorMessage = "唯一标识不能为空")]
        public string id { get; set; }

        /// <summary>
        /// 排序类型(0.升序 1.降序 2.置顶 3.置尾)
        /// </summary>
        [Required(ErrorMessage = "排序标识不明")]
        public SortTypeEnum SortType { get; set; }
    }
}
